import request from "@/utils/request";
import { Login, } from "@/type/api"
import { User, ResultData} from '@/type/index'
export default {
    login(params: Login.params) {
        return request.post("/users/login", params, { showLoading: true, showError: true })
    },
    getUserList(params?: User.Params) {
        return request.get<ResultData<User.UserItem>>('/users/list', params);
    }
}